StoreEngine\Addons\Subscription\Hooks C

Total Complexity 113
Dependencies 17
Dependents 3
Total lines 796
Lines of code 485
Logical lines of code 260
Comment lines 173
Methods 31
Properties 4

Methods 31

Method Rating Maintainability Complexity Lines of code
calculate_subscription_totals()
B
37 15 72
maybe_change_users_subscription()
A
41 8 66
generate_recurring_cart_key()
A
47 9 37
get_cart_subscription_sign_up_fee()
A
55 9 18
add_shipping()
S
46 6 38
get_formatted_product_subtotal()
S
50 6 27
display_recurring_totals()
S
53 6 22
set_subscription_prices_for_calculation()
S
61 6 13
customer_api_add_subscription_data()
S
50 5 27
order_subscription_info()
S
54 5 19
cart_contains_resubscribe()
S
59 5 15
cart_needs_payment()
S
64 4 9
get_sign_up_fee_filter()
S
78 3 3
add_related_orders_to_view_subscription()
S
62 2 12
add_subscriptions_to_view_order()
S
62 2 12
cart_product_price()
S
63 2 12
__construct()
S
55 1 18
order_subscription_details()
S
65 2 9
display_subscription_price()
S
70 2 6
display_subscription_period()
S
64 2 10
add_calculation_price_filter()
S
68 2 7
cart_contains_subscription()
S
75 2 4
remove_calculation_price_filter()
S
78 1 3
get_recurring_shipping_package_key()
S
79 1 3
get_calculation_type()
S
80 1 3
set_calculation_type()
S
76 1 4
set_recurring_cart_key()
S
76 1 4
get_recurring_cart_key()
S
80 1 3
set_cached_recurring_cart()
S
80 1 3
charge_shipping_up_front()
S
78 1 3
all_cart_items_have_free_trial()
S
78 1 3